//===================================================================================
// $$
//
// Coder: Code Milker v1.0
// 0 - upper
// 1 - lower
//===================================================================================

namespace App.Domain.Handlers
{
    using System;
    using App.Data;
    using App.Domain.Contracts;
    using App.Model;

    public class GetLovs
    {
        private readonly ILovRepository _lovRepository;

        public GetLovs(ILovRepository lovRepository)
        {
            _lovRepository = lovRepository;
        }

        public Lov Execute(Guid newsId)
        {
            try
            {
                return _lovRepository.GetLov(newsId);
            }
            catch (InvalidOperationException ex)
            {
                throw new BusinessServicesException("UnableToRetrieveReminderExceptionMessage", ex);
            }
        }
    }
}
